﻿#region [===== Using =====]
using System;
using Microsoft.SharePoint;
#endregion

namespace TPG.SharePoint.Workflow
{
    /// <summary>
    /// Represents the metadata for the task form.
    /// </summary>
    public class TaskMetaData
        : WorkflowMetaData
    {
        /// <summary>
        /// Gets the date that the task is due.
        /// </summary>
        public DateTime? DueDate { get; internal set; }

        /// <summary>
        /// Gets the date that the task starts.
        /// </summary>
        public DateTime? StartDate { get; internal set; }
        
        /// <summary>
        /// Gets the priority of the task.
        /// </summary>
        public string Priority { get; internal set; }

        /// <summary>
        /// Gets a value indicating how much of the task has been completed.
        /// </summary>
        public double? PercentageComplete { get; internal set; }

        /// <summary>
        /// Gets the person or group that the task is assigned to.
        /// </summary>
        public SPFieldUserValue AssignedTo { get; internal set; }

        /// <summary>
        /// Gets a HTML RichText value describing the task.
        /// </summary>
        public string Body { get; internal set; }

        /// <summary>
        /// Gets the <see cref="SPListItem" /> object that
        /// represents the list item that the workflow 
        /// is running on.
        /// </summary>
        public SPListItem WorkflowItem { get; internal set; }
    }
}
